//
//  AboutProductViewCell.m
//  QuickCure
//
//  Created by 马太行 on 16/9/12.
//  Copyright © 2016年 haoge. All rights reserved.
//

#import "AboutProductViewCell.h"

@implementation AboutProductViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (instancetype) initWithAboutProduct:(NSIndexPath *)indexPath
{
    
    self = [super init];
    
    switch (indexPath.row) {
        case 0:
        {
            //文字
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(55, 17, 110, 20)];
            label.text = @"用户协议";
            [self.contentView addSubview:label];
            
            //图片
            UIImageView *imageview = [[UIImageView alloc]initWithFrame:CGRectMake(20, 15, 25, 25)];
            imageview.image = [UIImage imageNamed:@"Snip20160912_3"];
            [self.contentView addSubview:imageview];
            
            [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
            
            //线
            UIView *view = [[UIView alloc]initWithFrame:CGRectMake(50, 50, 325, 1)];
            view.backgroundColor = [UIColor groupTableViewBackgroundColor];
            [self.contentView addSubview:view];
            
        }
            break;
            
        default:
            break;
    }
    
    
    return  self;
}
@end
